package cn.powerone.scm.service;

import java.util.Date;
import java.util.List;
import cn.powerone.scm.domain.ScmCustomer;

/**
 * 客户Service接口
 * 
 * @author PowerOne
 * @date 2025-06-23
 */
public interface IScmCustomerService 
{
    /**
     * 查询客户
     * 
     * @param id 客户主键
     * @return 客户
     */
    public ScmCustomer selectScmCustomerById(Long id);

    /**
     * 查询客户列表
     * 
     * @param scmCustomer 客户
     * @return 客户集合
     */
    public List<ScmCustomer> selectScmCustomerList(ScmCustomer scmCustomer);

    /**
     * 新增客户
     * 
     * @param scmCustomer 客户
     * @return 结果
     */
    public int insertScmCustomer(ScmCustomer scmCustomer);

    /**
     * 修改客户
     * 
     * @param scmCustomer 客户
     * @return 结果
     */
    public int updateScmCustomer(ScmCustomer scmCustomer);

    /**
     * 批量删除客户
     * 
     * @param ids 需要删除的客户主键集合
     * @return 结果
     */
    public int deleteScmCustomerByIds(Long[] ids);

    /**
     * 删除客户信息
     * 
     * @param id 客户主键
     * @return 结果
     */
    public int deleteScmCustomerById(Long id);

    /** 导入数据
     * @param scmCustomer 导入询价Batch列表
     */
    public String importData(List<ScmCustomer> scmCustomer, boolean updateSupport, String operName);

    public int selectCustomerCountByMonth(Date yesterday);

    public int selectCustomerCountByYear(Date yesterday);

    public int selectCustomerCountAll();
}
